61869d4fbf28ce7830cb0178ae968847caefeaba,plugins/hg4idea/src/org/zmlx/hg4idea/command/mq/HgQPushCommand.java,HgQPushCommand,execute,#String#,37

Before Change


  public void execute(@NotNull final String patchName) {
    final Project project = myRepository.getProject();
    new HgCommandExecutor(project)
      .execute(myRepository.getRoot(), "qpush", Arrays.asList("--move", patchName), new HgCommandResultHandler() {
        @Override
        public void process(@Nullable HgCommandResult result) {
          if (HgErrorUtil.hasErrorsInCommandExecution(result)) {
            new HgCommandResultNotifier(project)
              .notifyError(result, "QPush command failed", "Could not apply selected patch " + patchName);
          }
          myRepository.update();
        }
      });
  }
}

After Change


  public void executeInCurrentThread(@NotNull final String patchName) {
    final Project project = myRepository.getProject();
    HgCommandResult result =
      new HgCommandExecutor(project).executeInCurrentThread(myRepository.getRoot(), "qpush", Arrays.asList("--move", patchName));
    if (HgErrorUtil.hasErrorsInCommandExecution(result)) {
      new HgCommandResultNotifier(project)
        .notifyError(result, "QPush command failed", "Could not apply selected patch " + patchName);